package com.steellee.leeexcel.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 模拟返回对象ExampleDtoTwo
 */
@Data
public class PaExampleTwoDto implements Serializable {
    @ExcelProperty(value = "序号", index = 0)
    private String sort1;
    @NotBlank(message = "计划类型不能为空! ")
    @ExcelProperty(value = "计划类型", index = 1)
    private String planType1;
    @NotBlank(message = "制度级别不能为空! ")
    @ExcelProperty(value = "制度级别", index = 2)
    private String docLevel1;

    @NotBlank(message = "规划制度名称不能为空!")
    @ExcelProperty(value = "规划制度名称", index = 3)
    private String docName1;
    @ExcelProperty(value = "计划说明", index = 4)
    private String planDesc1;
    @NotNull(message = "计划开始时间不能为空! ")
    @ExcelProperty(value = "计划开始时间", index = 5)
    @JsonFormat(pattern = "yyyy-MM- dd HH: mm: ss", timezone = "Asia/ Shanghai")
    private Date planStartTime1;
    @NotNull(message = "计划结束时间不能为空! ")
    @ExcelProperty(value = "计划结束时间", index = 6)
    @JsonFormat(pattern = "yyyy-MM- dd HH: mm: ss", timezone = "Asia/ Shanghai")
    private Date planEndTime1;
    @ExcelProperty(value = "处理人", index = 7)
    private String um1;
}
